package com.situ.web.test;

public class Example {
    String str = new String("good");
    char[] chs = { 'a', 'b', 'c' };

    public static void main(String args[]) {
        Example ex = new Example();
        // ex.str叫实参
        ex.change(ex.str, ex.chs);
        System.out.print(ex.str + " and ");
        System.out.print(ex.chs);
    }

    // str叫形参
    public void change(String str1, char[] ch1) {
        str1 = "test ok";
        ch1[0] = 'g';
    }
}
